package org.yzh.web.mp.mapper;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.yzh.web.mp.entity.Location;

/**
 * @author nick
 * @description 位置mapper
 * @date 2022/3/8
 **/
@DS("taos")
public interface TaosLocationMapper extends BaseMapper<Location> {

    /**
     * 新增
     *
     * @param one 实体
     * @return /
     */
    @Insert("insert into location_${cid} using location (cid) tags (${cid}) values " +
            " (#{time}, #{vehicleId}, #{status}, #{extStatus}, #{speed}," +
            " #{high}, #{orientation}, #{mileage}, #{oil}, #{addTime}, #{flag}, #{warningMark}, #{longitude}, #{latitude})")
    int insertOne(Location one);

}
